package word417;


import word417.jiekl.ComparableTriangle;
import word417.jiekl.Triangle;

public class SortRectangles {
  public static void main(String[] args) {
//    ComparableRectangle[] rectangles = {
//      new ComparableRectangle(3.4, 5.4),
//      new ComparableRectangle(13.24, 55.4),
//      new ComparableRectangle(7.4, 35.4),
//      new ComparableRectangle(1.4, 25.4)};
//    java.util.Arrays.sort(rectangles);
//    for (Rectangle rectangle: rectangles) {
//      System.out.print(rectangle + " ");
//      System.out.println();
//    }

    ComparableTriangle[] triangle = {
            new ComparableTriangle(6,4),
            new ComparableTriangle(25,6),
            new ComparableTriangle(13,9),
            new ComparableTriangle(20,13),
    };
    java.util.Arrays.sort(triangle);
    for (Triangle triangle1 : triangle) {
      System.out.print(triangle1 + " ");
      System.out.println();
    }
  }
}
